from project.apps.user import user_blueprint
from flask_restful import Resource, Api

login_api = Api(user_blueprint)


class LoginResource(Resource):

    def get(self):
        return {'msg': 'login success'}


login_api.add_resource(LoginResource, '/login')


# @user_blueprint.route('/login')
# def login():
#     return {'msg': 'login success'}